Plotting percentage of high school graduates enrolling in postsecondary education.
Interactive figure using ggiraph.
In this modified script:
geom_point_interactive() and geom_line_interactive() from ggiraph allow adding tooltips for interactivity.
Adjust width_svgand height_svg parameters in girafe() to fit your preferred display dimensions.
This setup makes the plot interactive, allowing users to hover over points or lines to see additional information. Adjust the data and titles (subtitle and caption) as needed.